from django.urls import path
from django.views.generic.base import RedirectView  # 新增导入
from .views import test_view, LoginView, login_page, RegisterView, register_page

urlpatterns = [
    path('', RedirectView.as_view(pattern_name='login_page', permanent=False)),
    path('test/', test_view, name='test_view'),
    path('login/', LoginView.as_view(), name='login'),
    path('login_page/', login_page, name='login_page'),
    path('register/', RegisterView.as_view(), name='register'),
    path('register_page/', register_page, name='register_page'),
]
